Optimal. Leaf size=16 \[ \log (2) \log (x)-\text {Li}_2\left (-\frac {e x}{2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2439, 2438}
\begin {gather*} \log (2) \log (x)-\text {PolyLog}\left (2,-\frac {e x}{2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2438
Rule 2439
Rubi steps
\begin {align*} \int \frac {\log (2+e x)}{x} \, dx &=\log (2) \log (x)+\int \frac {\log \left (1+\frac {e x}{2}\right )}{x} \, dx\\ &=\log (2) \log (x)-\text {Li}_2\left (-\frac {e x}{2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 16, normalized size = 1.00 \begin {gather*} \log (2) \log (x)-\text {Li}_2\left (-\frac {e x}{2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(32\) vs.
\(2(14)=28\).
time = 0.11, size = 33, normalized size = 2.06
method | result | size |
derivativedivides | \(\left (\ln \left (e x +2\right )-\ln \left (\frac {e x}{2}+1\right )\right ) \ln \left (-\frac {e x}{2}\right )-\dilog \left (\frac {e x}{2}+1\right )\) | \(33\) |
default | \(\left (\ln \left (e x +2\right )-\ln \left (\frac {e x}{2}+1\right )\right ) \ln \left (-\frac {e x}{2}\right )-\dilog \left (\frac {e x}{2}+1\right )\) | \(33\) |
risch | \(\left (\ln \left (e x +2\right )-\ln \left (\frac {e x}{2}+1\right )\right ) \ln \left (-\frac {e x}{2}\right )-\dilog \left (\frac {e x}{2}+1\right )\) | \(33\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 23, normalized size = 1.44 \begin {gather*} \log \left (x e + 2\right ) \log \left (-\frac {1}{2} \, x e\right ) + {\rm Li}_2\left (\frac {1}{2} \, x e + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 1.39, size = 87, normalized size = 5.44 \begin {gather*} \begin {cases} - \operatorname {Li}_{2}\left (\frac {e x e^{i \pi }}{2}\right ) & \text {for}\: \frac {1}{\left |{x}\right |} < 1 \wedge \left |{x}\right | < 1 \\\log {\left (2 \right )} \log {\left (x \right )} - \operatorname {Li}_{2}\left (\frac {e x e^{i \pi }}{2}\right ) & \text {for}\: \left |{x}\right | < 1 \\- \log {\left (2 \right )} \log {\left (\frac {1}{x} \right )} - \operatorname {Li}_{2}\left (\frac {e x e^{i \pi }}{2}\right ) & \text {for}\: \frac {1}{\left |{x}\right |} < 1 \\- {G_{2, 2}^{2, 0}\left (\begin {matrix} & 1, 1 \\0, 0 & \end {matrix} \middle | {x} \right )} \log {\left (2 \right )} + {G_{2, 2}^{0, 2}\left (\begin {matrix} 1, 1 & \\ & 0, 0 \end {matrix} \middle | {x} \right )} \log {\left (2 \right )} - \operatorname {Li}_{2}\left (\frac {e x e^{i \pi }}{2}\right ) & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.03, size = 18, normalized size = 1.12 \begin {gather*} {\mathrm {Li}}_{\mathrm {2}}\left (-\frac {e\,x}{2}\right )+\ln \left (e\,x+2\right )\,\ln \left (-\frac {e\,x}{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________